# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年10月28日
"""
import re

a = 'MFD-A-3-(1-T)x(1-4)～(1-5)'
b = 'MFD-A-11-(1/1-U)x(1-17)～(1-18)'
c = 'MFD-A-1-Ax1～2'
pattern = r'[A-Z]{2,4}-[A-Z]-(\d{1,2})-(\([0-9A-Z/-]+\)|\w{1,2})x(\([0-9A-Z/-]+\)|\w{1,2})～(\([0-9A-Z/-]+\)|\w{1,2})'
# pattern = r'-(\d{1,2})-'
# pattern = r'(\([0-9A-Z/-]+\)|-(\d{1,2}))'
# pattern = r'-(\d{1,2})|(\([0-9A-Z/-]+\))'
# result = re.findall(pattern, a, re.I)
result = re.findall(pattern, c, re.I)
print(list(result[0]))
# for i in result:
# 	# print(i.group(0))
# 	# print(i.group(1))
# 	# print(i.group(2))
# 	# print(i.group(3))
# 	# print(i.group(4))
# 	print(i)

